import axios from "axios";
import { ExampleClient } from "@/types/modules/auth";

const contentPath = '/system/client'

export function create(client: ExampleClient) {
  return axios.post<boolean>(`${contentPath}`, client)
}

export function update(client: ExampleClient) {
  return axios.put<boolean>(`${contentPath}`, client)
}

export function deleteById(id: string) {
  return axios.delete<boolean>(`${contentPath}/${id}`)
}

export function findById(id: string) {
  return axios.get<ExampleClient>(`${contentPath}/${id}`)
}

export function findList() {
  return axios.get<ExampleClient[]>(`${contentPath}/list`)
}
